#ifndef LAN2CALBTN_H
#define LAN2CALBTN_H

#include <QObject>
#include <QPushButton>
#include "lan2core.h"

/**
 * @brief The Lan2CalBtn class
 * 表头的按钮样式
 */

LAN2STA

class Lan2CalBtn : public QPushButton
{
    Q_OBJECT
public:
    const QString ms_selectedcolor="#f0f0f0";//0091ff

    Lan2CalBtn(QWidget *parent = nullptr,const QString & txt="",int width=30,int height=30):QPushButton(parent)
    {
        this->setStyleSheet(QString("QPushButton{background:#fdfdfd;border:#fdfdfd}QPushButton::hover{background:%1;}").arg(ms_selectedcolor));
        this->setText(txt);
        this->setFixedSize(width,height);

    }

};
LAN2END
#endif // LAN2CALBTN_H
